
        <HTML>
		<HEAD>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="description" content="Flash MX 2004 ActionScript2.0 Library: Intersect2D - Wright Internet Solutions">
		<meta name="keywords" content="geometry,Intersect2D,Flash,MX,2004,ActionScript,ActionScript2.0,AS2.0 Library,AS2,AS2 Library,Wright Internet Solutions,Wright,class,documentation,methods,functions,interfaces,JavaScript,Java">
		<TITLE>WIS AS2 Library : com.wis.math.geom.intersect2D.Intersect2D Documentation</TITLE>

		<STYLE><!--
		HR.small{height:1px; width:100%; background:#E7BFA3; border: 0px;}
		HR.big{height:4px; width:100%; background:#E7BFA3; border: 0px;}
		A:hover{text-decoration: underline}
		A{text-decoration: none; color: #993333}
		code{font-family: monospace; font-size: 12px; color: #666666;}
		.methodAttributesTitle{font-size: 12px; font-weight: bold; color: #7B779C}
		.ToC{font-size: 12px; font-weight: bold; color: #993333}
		.methodTitle{font-size: 14px; font-weight: bold; color: #993333}
		.groupTitle{font-size: 18px; font-weight: bold; color: #993333}
		.sectionTitle{font-size: 22px; font-weight: bold; color: #993333}
		.majorTitle{font-size: 32px; font-weight: bold; color: #993333; padding-bottom:100px;}
		.methodsDiv{margin-left:40px;}
		.footer{font-size: 11px; color: #666666;}
		body{font-family: arial,sans-serif; font-size: 12px;}
		//--></STYLE>

		</HEAD>
		<BODY bgColor='#ffffcc'>
		<P class='majorTitle'>com.wis.math.geom.intersect2D.Intersect2D Documentation</P>


		<P><B>Author:</B> <a href='mailto:wisolutions2002@shaw.ca?subject=wisASLibrary Intersect2D Class'>Richard Wright</a><BR>
		<B>Last Modified:</B> 08/05/04 21:00:46<HR class='big'>

		<P class='sectionTitle'>Summary</P>
		<P class='ToC'>com.wis.math.geom.intersect2D.Intersect2D class:</P>
		<div class='methodsDiv'><a href='#classinfo'>- description</a></div>
<P class='ToC'>com.wis.math.geom.intersect2D.Intersect2D Properties:</P><div class='methodsDiv'>
<a href='#$status'>- $status</a><br>
<a href='#$points'>- $points</a><br>
</div><br>
<P class='ToC'>com.wis.math.geom.intersect2D.Intersect2D Methods:</P><div class='methodsDiv'>
<a href='# init'>-  init</a><br>
<a href='# appendPoint'>-  appendPoint</a><br>
<a href='# appendPoints'>-  appendPoints</a><br>
<a href='# pointsToString'>-  pointsToString</a><br>
<a href='# toString'>-  toString</a><br>
<a href='# shapes'>-  shapes</a><br>
<a href='# pathShape'>-  pathShape</a><br>
<a href='# bezout'>-  bezout</a><br>
</div><br>

		<HR class='big'>
		<P class='sectionTitle'><A name='classinfo'></A>com.wis.math.geom.intersect2D.Intersect2D <I>class</I></P>
		<P> <span class='methodTitle'>version:</span> 1.7</P>
		<P class="methodTitle">description:</P>
		<P>Implements the behaviours of the Intersect2D Class.
 <p>
 		        This class has been spread across the entire contents of the
 intersect2D package, due to the large byte size of the original JS
 document. Flash MX restricts class files to 32 k, so I have
 presented this class as the superclass to connect all of the 2D
 intersection routines.
 </P>
		<P class="methodTitle">usage:</P> <pre>var inst:Intersect2D = new Intersect2D(status);</pre>

<P> <span class='methodTitle'>parameters:</span>
				<ul>
<li>      status (String)  -- an identifier string.</li>
</ul>

			<HR class='small'>
			<P class='groupTitle'><A name='properties'></A>com.wis.math.geom.intersect2D.Intersect2D Properties:</P>
			<div class='methodsDiv' >


				<P class='methodTitle'><A name='$status'></A><u> $status</u></P>
				<P> (String)  -- an identifier string.</P>

				<P class='methodTitle'><A name='$points'></A><u> $points</u></P>
				<P> (Array)  -- a holder for vertex Point objects.</P>
</div>

			<HR class='small'>
			<P class='groupTitle'><A name='methods'></A>com.wis.math.geom.intersect2D.Intersect2D Methods:</P>
			<div class='methodsDiv' >


				<P class='methodTitle'><A name=' init'></A><u>  init</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Initializes anew Intersect2D instance.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.init(status);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  status   (String)  -- an identifier string.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Void)
    </P>

				<P class='methodTitle'><A name=' appendPoint'></A><u>  appendPoint</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Adds a new vertex Point object to the stack.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.appendPoint(point);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  point   (Object)  -- a vertex Point object.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Void)
    </P>

				<P class='methodTitle'><A name=' appendPoints'></A><u>  appendPoints</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Adds a list of new vertex Point objects to the stack.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.appendPoints(points);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  points   (Array)  -- a holder for vertex Point objects.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Void)
    </P>

				<P class='methodTitle'><A name=' pointsToString'></A><u>  pointsToString</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Creates a string representation of the stack data.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.pointsToString();</pre>
     </P>
<P><span class='methodAttributesTitle'>returns:</span> (String)  -- returns a string representation of the stack data for display.
    </P>

				<P class='methodTitle'><A name=' toString'></A><u>  toString</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Creates a string representation of the stack data that
     includes this instance's $status string as an identifier.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.toString();</pre>
     </P>
<P><span class='methodAttributesTitle'>returns:</span> (String)  -- returns a string representation of the stack data that includes this instance's $status string as an identifier.
    </P>

				<P class='methodTitle'><A name=' shapes'></A><u>  shapes</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Called from subclasses, it concatenates shape object returns
     from 'getIntersect2DParams' to define type of Intersect2D
     intersection test.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.shapes(shape1,shape2);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  shape1   (Object)  -- a generic shape object.</li>
<li>  shape2   (Object)  -- a generic shape object.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Intersect2D)  -- returns anew Intersect2D object.
    </P>

				<P class='methodTitle'><A name=' pathShape'></A><u>  pathShape</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Static -- subclass method overrides this method.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.pathShape(path,shape);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  path   (Function)  -- a shape object function.</li>
<li>  shape   (Object)  -- a generic shape object.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Intersect2D)  -- returns a new Intersect2D object.
    </P>

				<P class='methodTitle'><A name=' bezout'></A><u>  bezout</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				function description here
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>inst.bezout(e1,e2);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>  e1   (Array)  -- a holder for polynomial '1' coefficients.</li>
<li>  e2   (Array)  -- a holder for polynomial '2' coefficients.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Polynomial)  -- returns a new Polynomial object.
    </P>
</div>

			<BR>
			<BR>
			<HR class='big'>
			<span class="footer">generated with <A href='http://blog.klaustrofobik.org/' target='_blank'>AS2docGenerator beta 0.5.3</A></span>
			</BODY>
			</HTML>

